<?php

use Illuminate\Database\Seeder;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [];
        //
        for($i =0 ; $i < 100; $i++)
        {
        	$temp['name'] = str_random(6);
        	$temp['password'] = Crypt::encrypt(123);
        	$temp['email'] = str_random(5)."@163.com";
        	$temp['remember_token'] = str_random(70);
            $temp['phone'] = rand('10000000000','99999999999');
        	$time = date('Y-m-d H:i:s');
        	$temp['created_at'] = $time;
        	$temp['updated_at'] = $time;
        	$data[] = $temp;
        }

        DB::table('users') -> insert($data);
    }
}
